package com.tjzx.entity;

/**
 * ExamRightId entity. @author MyEclipse Persistence Tools
 */

public class ExamRightId implements java.io.Serializable {

	// Fields

	private Integer examId;
	private Integer id;
	private Integer type;

	// Constructors

	/** default constructor */
	public ExamRightId() {
	}

	/** minimal constructor */
	public ExamRightId(Integer examId) {
		this.examId = examId;
	}

	/** full constructor */
	public ExamRightId(Integer examId, Integer id, Integer type) {
		this.examId = examId;
		this.id = id;
		this.type = type;
	}

	// Property accessors

	public Integer getExamId() {
		return this.examId;
	}

	public void setExamId(Integer examId) {
		this.examId = examId;
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof ExamRightId))
			return false;
		ExamRightId castOther = (ExamRightId) other;

		return ((this.getExamId() == castOther.getExamId()) || (this
				.getExamId() != null
				&& castOther.getExamId() != null && this.getExamId().equals(
				castOther.getExamId())))
				&& ((this.getId() == castOther.getId()) || (this.getId() != null
						&& castOther.getId() != null && this.getId().equals(
						castOther.getId())))
				&& ((this.getType() == castOther.getType()) || (this.getType() != null
						&& castOther.getType() != null && this.getType()
						.equals(castOther.getType())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getExamId() == null ? 0 : this.getExamId().hashCode());
		result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
		result = 37 * result
				+ (getType() == null ? 0 : this.getType().hashCode());
		return result;
	}

}